﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Back.Xinkui.Common.Enum;

namespace Back.Xinkui.Common
{
    public class EnumHelper
    {
        public static string EnumToString(EAuditStatus auditStatus)
        {
            switch (auditStatus)
            {
                case EAuditStatus.Approve:
                    return "审核通过";
                case EAuditStatus.Change:
                    return "修改待审";
                case EAuditStatus.Draft:
                    return "草稿";
                case EAuditStatus.New:
                    return "新增";
                case EAuditStatus.Reject:
                    return "审核拒绝";
                default:
                    return "";
            }
        }
        public static string PurchaseTypeEnumToString(EPurchaseType purchaseType)
        {
            switch (purchaseType)
            {
                case EPurchaseType.OrdinaryPurchasing:
                    return "OrdinaryPurchasing";
                default:
                    return "";
            }
        }

    }
}
